]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionDownloader: Only check updates for user extensions
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 22 Jan 2020 14:42:06 +0000 (15:42 +0100)
committerverdre <jonas@dressler.it>
Thu, 30 Jan 2020 13:37:47 +0000 (13:37 +0000)
System extensions cannot be updated through the website, so don't
even try.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945

js/ui/extensionDownloader.js

index 2ae64ea44d995db2b9e3380012c380c153b0fc65..25145564d7ddfa6144118d5175bfa2b842f88541 100644 (file)
@@ -120,7 +120,10 @@ function downloadExtensionUpdate(uuid) {
 function checkForUpdates() {
     let metadatas = {};
     Main.extensionManager.getUuids().forEach(uuid => {
-        metadatas[uuid] = Main.extensionManager.lookup(uuid).metadata;
+        let extension = Main.extensionManager.lookup(uuid);
+        if (extension.type !== ExtensionUtils.ExtensionType.PER_USER)
+            return;
+        metadatas[uuid] = extension.metadata;
     });
 
     let params = { shell_version: Config.PACKAGE_VERSION,